import { URI } from "@/services/api";
import { request, METHOD } from "@/utils/request";

export async function getLogRecords(time, url, content, pageSize, pageIndex) {
    return request(`${URI}/LogRecord/GetData`, METHOD.GET, { time, url, content, pageSize, pageIndex });
}


export async function getDataBaseLogs(time, search, pageSize, pageIndex) {
    return request(`${URI}/DataBaseLog/GetData`, METHOD.GET, { time, search, pageSize, pageIndex });
}


export async function getAgvLogs(time, search, pageSize, pageIndex) {
    return request(`${URI}/AgvLog/GetData`, METHOD.GET, { time, search, pageSize, pageIndex });
}

export default {
    getLogRecords,
    getDataBaseLogs,
    getAgvLogs
};
